/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package pt.isel.medknow.tables;

import java.util.HashSet;
import java.util.Set;

/**
 *
 * @author fallen
 */
public class Filial {
    //<editor-fold defaultstate="collapsed" desc="fields">
    private Integer filialId;
    public String name;
    public Set doctors = new HashSet();
    //</editor-fold>

    //<editor-fold defaultstate="collapsed" desc="IDE generated stuff">
    public Integer getFilialId() {
        return filialId;
    }

    public void setFilialId(Integer filialId) {
        this.filialId = filialId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Set getDoctors() {
        return doctors;
    }

    public void setDoctors(Set doctors) {
        this.doctors = doctors;
    }
    //</editor-fold>

    public Filial() {
    }

    @Override
    public String toString() {
        return String.format("filialId=%s, name=%s, doctorsCount=%s", 
                filialId.toString(), name, doctors.size());
    }
}